mediaFoundationReaderStreamGetNativeMediaType
Type
function
Summary
Get the ID of the native media type of a reader stream Platform:desktop
Syntax
mediaFoundationReaderStreamGetNativeMediaType(<pFilePath>, <pStreamIndex>)
Description
The reader must already be created with mediaFoundationCreateReader. Call mediaFoundationDeleteMediaType with the returned ID when your script no longer needs to access the media type.
*Note
*:See the mediaFoundationTranscode documentation for a complete example of using this handler.
Parameters
Name | Type | Description |
---|---|---|
pFilePath | string | The path to a media file |
pStreamIndex | integer | An integer between 1 and the number of streams |
Related
command: mediaFoundationTranscode, mediaFoundationCreateReader, mediaFoundationDeleteMediaType
Compatibility and Support
OS
windows